package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.query.OmnipotentParam;
import com.hoshiicloud.common.query.OmnipotentWrapper;
import com.hoshiicloud.goods.entity.sku.VendorGoodsSku;
import java.util.List;

/**
 * <p>
 * 供应商商品SKU 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
public interface VendorGoodsSkuService extends IService<VendorGoodsSku> {

    VendorGoodsSku getById(Long id);

    @Override
    boolean save(VendorGoodsSku entity);

    @Override
    boolean updateById(VendorGoodsSku entity);

    IPage getPage(IPage page, Wrapper queryWrapper, String key);

    boolean deleteById(Long id);

    List<VendorGoodsSku> getByIds(List<Long> ids, String key);

    /**
     * 通过自定义条件批量查询供应商商品Sku信息
     */
    List<VendorGoodsSku> queryBatch(List<OmnipotentWrapper> param);

    /**
     *  通过自定义条件进行批量更新
     */
    Boolean updateBatch(OmnipotentParam<VendorGoodsSku> param);
}
